
$(function(){
	 $("#framelayout").jfLayout({
			leftWidth : 200,
			height : '100%',
			heightDiff : -34,
			space : 4
			
	});
	
	var height = $(".l-layout-center").height();
	
	$("#framecenter").jfTab({ height: height });
	
	//$("#frameaccordion").jfAccordion({ height: height - 24, speed: null });
	
	/* //树
      $("#mytree").ligerTree({
			data : mytree,
			checkbox : false,
			slide : false,
			nodeWidth : 120,
			attribute : ['nodename', 'url'],
			onSelect : function(node) {
				if (!node.data.url)
					return;
				var tabid = $(node.target).attr("tabid");
				if (!tabid) {
					tabid = new Date().getTime();
					$(node.target).attr("tabid", tabid)
				}
				f_addTab(tabid, node.data.text, node.data.url);
			}
		});
	*/
	
	 $("#pageloading").hide();
	 
	 var heightChanged =  function(options){
            if (tab){
            	 tab.addHeight(options.diff);
            }
               
            if (accordion && options.middleHeight - 24 > 0){
            	accordion.setHeight(options.middleHeight - 24);
            }      
        };
});